From: Jasper St. Pierre Date: Mon, 25 Feb 2013 19:48:06 +0000 (-0500) Subject: Center the search results as well X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4639 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=310dc10c4dfbe86e62e660333e00f1aebfa248cd;p=gnome-shell.git Center the search results as well Use overlay_scrollbars and the same padding. https://bugzilla.gnome.org/show_bug.cgi?id=694701 --- diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css index d1655fc62..a3575d92b 100644 --- a/data/theme/gnome-shell.css +++ b/data/theme/gnome-shell.css @@ -860,6 +860,7 @@ StScrollBar StButton#vhandle:active { padding: 4px 16px; } +.search-display > StBoxLayout, .all-apps > StBoxLayout, .frequent-apps > StBoxLayout { /* horizontal padding to make sure the scrollbar doesn't overlap content */ diff --git a/js/ui/searchDisplay.js b/js/ui/searchDisplay.js index 9c6c06314..c54cd0007 100644 --- a/js/ui/searchDisplay.js +++ b/js/ui/searchDisplay.js @@ -331,7 +331,8 @@ const SearchResults = new Lang.Class({ this._scrollView = new St.ScrollView({ x_fill: true, y_fill: false, - style_class: 'vfade' }); + overlay_scrollbars: true, + style_class: 'search-display vfade' }); this._scrollView.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC); this._scrollView.add_actor(scrollChild); let action = new Clutter.PanAction({ interpolate: true });